package me.gavin.net

import okhttp3.Interceptor
import okhttp3.Response
import java.io.IOException

/**
 * token 拦截器
 */
class HeaderInterceptor : Interceptor {

    @Throws(IOException::class)
    override fun intercept(chain: Interceptor.Chain): Response {
        return chain.proceed(chain.request()
                .newBuilder()
                // .header("version", BuildConfig.VERSION_NAME)
                // .header("referer", "https://m.mzitu.com/")
                .build())
    }

}
